using System;
using System.Configuration;

namespace Xtee.Core.Adapter.Service.Config.Validators
{
    public class MessagePathFormatValidator : ConfigurationValidatorBase
    {
        public override void Validate(object value)
        {
            var sValue = value as string;
            if (!string.IsNullOrEmpty(sValue))
            {
               var path =  new MessagePathStructure("root", true, null, "12345678912", "validation")
                    .SetFormat(sValue)
                    .FullPath;
            }
        }

        public override bool CanValidate(Type type)
        {
            return type.Name == "String";
        }

    }
}